import React, { Component, PropTypes } from 'react';
import {
    StackNavigator,
  } from 'react-navigation';
import {
    Text,
} from 'react-native'
import IndexWrap from './business/indexPage/indexWrap';
import HotelPage from './business/HotelPage/HotelPage';


const SimpleApp = StackNavigator({
    Home: {
        screen: IndexWrap,
        path: 'Home',
        name: 'Main'
    },
    Hotel: {
        screen: HotelPage,
        path: 'Hotel'
    },
}, {
    initialRouteName: 'Home',
    navigationOptions: {
        header: null
    },
    // mode: 'card',  // 页面切换模式, 左右是card(相当于iOS中的push效果), 上下是modal(相当于iOS中的modal效果)
    // headerMode: 'screen', // 导航栏的显示模式, screen: 有渐变透明效果, float: 无透明效果, none: 隐藏导航栏
    // onTransitionStart: ()=>{},  // 回调
    // onTransitionEnd: ()=>{},  // 回调
});

export default SimpleApp;
  